﻿@{
    Agencia.Controllers.ReservacionController con = new Agencia.Controllers.ReservacionController();
    
}

<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>Agencia de Viajes</h1>
            </div>
            <div id="fechaActual">
            @Html.Partial("_LogOnPartial")
            </div>
             <div id="menucontainer">
             <ul id="menu">
             @if (Request.IsAuthenticated)
             {
                 var cliente = con.Lista_Clientes(User.Identity.Name);

                 if (cliente.Tipo == 0)
                 {      
                    <li>@Html.ActionLink("Inicio", "Index", "Home")</li>
                    <li>@Html.ActionLink("Itinerario", "Index", "Boleta")</li>
                    <li>@Html.ActionLink("Reservas", "Index", "Reservacion")</li>
                 }
                 else
                 {
                    <li>@Html.ActionLink("Inicio", "Index", "Home")</li>
                    <li>@Html.ActionLink("Cliente", "Index", "Cliente")</li>
                    <li>@Html.ActionLink("Reservas", "Index", "Reservacion")</li>
                    <li>@Html.ActionLink("Itinerario", "Index", "Boleta")</li>
                 }
             }
             </ul>
            </div>
        </div>
       
        <div id="main">
            @RenderBody()
        </div>
        <div id="footer">
        </div>
    </div>
</body>
</html>
